package cn.ad.service;

import cn.ad.entity.AppUser;
import cn.ad.handler.SqlSessionHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author dongbin.yu
 * @from 2016-09-06
 * @since V1.0
 */
@Service
public class AppUserService {

    @Autowired
    private SqlSessionHandler sqlSessionHandler;

    public Map<String, AppUser> appUserMap() {
        return sqlSessionHandler.selectMap("appUser:list", null, "appId");
    }

}
